// ******************************************************************************
// Copyright     :  Copyright (C) 2020, Hisilicon Technologies Co. Ltd.
// File name     :  sfc_c_union_define.h
// Project line  :
// Department    :
// Author        :  xxx
// Version       :  1.0
// Date          :
// Description   :  项目描述信息
// Others        :  Generated automatically by nManager V5.1
// History       :  xxx 2020/05/21 16:59:29 Create file
// ******************************************************************************

#ifndef SFC_C_UNION_DEFINE_H
#define SFC_C_UNION_DEFINE_H

/* Define the union csr_global_config_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mode : 1;                /* [0] */
        u32 wp_en : 1;               /* [1] */
        u32 flash_cs0_addr_mode : 1; /* [2] */
        u32 rd_delay : 2;            /* [4:3] */
        u32 flash_cs1_addr_mode : 1; /* [5] */
        u32 rsv_0 : 26;              /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_global_config_u;

/* Define the union csr_timing_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tshsl : 4;  /* [3:0] */
        u32 rsv_1 : 4;  /* [7:4] */
        u32 tcss : 3;   /* [10:8] */
        u32 rsv_2 : 1;  /* [11] */
        u32 tcsh : 3;   /* [14:12] */
        u32 rsv_3 : 17; /* [31:15] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_timing_u;

/* Define the union csr_int_raw_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cmd_op_end_raw_status : 1;                 /* [0] */
        u32 dma_done_int_raw_status : 1;               /* [1] */
        u32 pp_fail_int_raw_status : 1;                /* [2] */
        u32 mem_ecc_fail_int_raw_status : 1;           /* [3] */
        u32 mem_ecc_val_int_raw_status : 1;            /* [4] */
        u32 sc_trig_raw_status : 1;                    /* [5] */
        u32 lock_timeout_raw_status : 1;               /* [6] */
        u32 wait_wip_before_op_timeout_raw_status : 1; /* [7] */
        u32 lock_ahb_conflict_raw_status : 1;          /* [8] */
        u32 rsv_4 : 23;                                /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_raw_status_u;

/* Define the union csr_int_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cmd_op_end_status : 1;                 /* [0] */
        u32 dma_done_int_status : 1;               /* [1] */
        u32 pp_fail_int_status : 1;                /* [2] */
        u32 mem_ecc_fail_int_status : 1;           /* [3] */
        u32 mem_ecc_val_int_status : 1;            /* [4] */
        u32 sc_trig_status : 1;                    /* [5] */
        u32 lock_timeout_status : 1;               /* [6] */
        u32 wait_wip_before_op_timeout_status : 1; /* [7] */
        u32 lock_ahb_conflict_status : 1;          /* [8] */
        u32 rsv_5 : 23;                            /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_status_u;

/* Define the union csr_int_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cmd_op_end_int_mask : 1;             /* [0] */
        u32 dma_done_int_mask : 1;               /* [1] */
        u32 pp_fail_int_mask : 1;                /* [2] */
        u32 mem_ecc_fail_int_mask : 1;           /* [3] */
        u32 mem_ecc_val_int_mask : 1;            /* [4] */
        u32 sc_trig_mask : 1;                    /* [5] */
        u32 lock_timeout_mask : 1;               /* [6] */
        u32 wait_wip_before_op_timeout_mask : 1; /* [7] */
        u32 lock_ahb_conflict_mask : 1;          /* [8] */
        u32 rsv_6 : 23;                          /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_mask_u;

/* Define the union csr_int_clear_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cmd_op_end_int_clr : 1;             /* [0] */
        u32 rsv_7 : 1;                          /* [1] */
        u32 pp_fail_int_clr : 1;                /* [2] */
        u32 mem_ecc_fail_clr : 1;               /* [3] */
        u32 mem_ecc_val_clr : 1;                /* [4] */
        u32 sc_trig_clr : 1;                    /* [5] */
        u32 lock_timeout_clr : 1;               /* [6] */
        u32 wait_wip_before_op_timeout_clr : 1; /* [7] */
        u32 lock_ahb_conflict_clr : 1;          /* [8] */
        u32 rsv_8 : 23;                         /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_clear_u;

/* Define the union csr_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_version_u;

/* Define the union csr_sys_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sys_version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sys_version_u;

/* Define the union csr_sys_version_lock_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sys_version_lock : 1; /* [0] */
        u32 rsv_9 : 31;           /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sys_version_lock_u;

/* Define the union csr_bus_config1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bus_rd_mem_if_type : 3;  /* [2:0] */
        u32 bus_rd_dummy_bytes : 3;  /* [5:3] */
        u32 bus_rd_prefetch_cnt : 2; /* [7:6] */
        u32 bus_rd_ins : 8;          /* [15:8] */
        u32 bus_wr_mem_if_type : 3;  /* [18:16] */
        u32 bus_wr_dummy_bytes : 3;  /* [21:19] */
        u32 bus_wr_ins : 8;          /* [29:22] */
        u32 bus_wr_enable : 1;       /* [30] */
        u32 bus_rd_enable : 1;       /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bus_config1_u;

/* Define the union csr_bus_config2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bus_wip_locate : 3; /* [2:0] */
        u32 rsv_10 : 29;        /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bus_config2_u;

/* Define the union csr_bus_flash_size_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bus_flash_size_cs0 : 4; /* [3:0] */
        u32 rsv_11 : 4;             /* [7:4] */
        u32 bus_flash_size_cs1 : 4; /* [11:8] */
        u32 rsv_12 : 20;            /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bus_flash_size_u;

/* Define the union csr_bus_base_addr_cs0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_13 : 16;                 /* [15:0] */
        u32 bus_base_addr_high_cs0 : 14; /* [29:16] */
        u32 rsv_14 : 2;                  /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bus_base_addr_cs0_u;

/* Define the union csr_bus_base_addr_cs1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_15 : 16;                 /* [15:0] */
        u32 bus_base_addr_high_cs1 : 14; /* [29:16] */
        u32 rsv_16 : 2;                  /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bus_base_addr_cs1_u;

/* Define the union csr_pp_timing_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 pp_busy_time : 24; /* [23:0] */
        u32 rsv_17 : 8;        /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_pp_timing_u;

/* Define the union csr_cmd_config_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cmd_start : 1;          /* [0] */
        u32 cmd_sel_cs : 1;         /* [1] */
        u32 rsv_18 : 1;             /* [2] */
        u32 cmd_addr_en : 1;        /* [3] */
        u32 cmd_dummy_byte_cnt : 3; /* [6:4] */
        u32 cmd_data_en : 1;        /* [7] */
        u32 cmd_rw : 1;             /* [8] */
        u32 cmd_data_cnt : 8;       /* [16:9] */
        u32 cmd_mem_if_type : 3;    /* [19:17] */
        u32 cmd_lock_flash : 1;     /* [20] */
        u32 rsv_19 : 11;            /* [31:21] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cmd_config_u;

/* Define the union csr_cmd_ins_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cmd_ins : 8; /* [7:0] */
        u32 rsv_20 : 24; /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cmd_ins_u;

/* Define the union csr_cmd_addr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cmd_addr : 30; /* [29:0] */
        u32 rsv_21 : 2;    /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cmd_addr_u;

/* Define the union csr_mem_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mem_ctrl : 24; /* [23:0] */
        u32 rsv_22 : 8;    /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_mem_ctrl_u;

/* Define the union csr_mem_ecc_info1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ecc_inval_muti_err : 1; /* [0] */
        u32 ecc_inval_err_syn : 5;  /* [5:1] */
        u32 err_inval_addr : 9;     /* [14:6] */
        u32 rsv_23 : 1;             /* [15] */
        u32 ecc_val_err : 1;        /* [16] */
        u32 ecc_val_err_syn : 5;    /* [21:17] */
        u32 err_val_addr : 9;       /* [30:22] */
        u32 rsv_24 : 1;             /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_mem_ecc_info1_u;

/* Define the union csr_arb_wip_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 arb_wip_timeout_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_arb_wip_timeout_u;

/* Define the union csr_arb_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lock_timeout : 1;      /* [0] */
        u32 lock_ahb_conflict : 1; /* [1] */
        u32 rsv_25 : 30;           /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_arb_cfg_u;

/* Define the union csr_arb_lock_timeout_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 arb_lock_timeout_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_arb_lock_timeout_cnt_u;

/* Define the union csr_cmd_databuf_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cmd_databuf : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cmd_databuf_u;

/* Define the union csr_sc_pro_saddrp_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_26 : 12; /* [11:0] */
        u32 saddr : 20;  /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_pro_saddrp_u;

/* Define the union csr_sc_pro_eaddrp_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_27 : 12; /* [11:0] */
        u32 eaddr : 20;  /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_pro_eaddrp_u;

/* Define the union csr_sc_pro_saf_cmd0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 saf_cmd0 : 8; /* [7:0] */
        u32 saf_cmd1 : 8; /* [15:8] */
        u32 saf_cmd2 : 8; /* [23:16] */
        u32 saf_cmd3 : 8; /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_pro_saf_cmd0_u;

/* Define the union csr_sc_pro_saf_cmd1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 saf_1cmd0 : 8; /* [7:0] */
        u32 saf_1cmd1 : 8; /* [15:8] */
        u32 saf_1cmd2 : 8; /* [23:16] */
        u32 saf_1cmd3 : 8; /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_pro_saf_cmd1_u;

/* Define the union csr_sc_pro_saf_cmd2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 saf_2cmd0 : 8; /* [7:0] */
        u32 saf_2cmd1 : 8; /* [15:8] */
        u32 saf_2cmd2 : 8; /* [23:16] */
        u32 saf_2cmd3 : 8; /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_pro_saf_cmd2_u;

/* Define the union csr_sc_pro_saf_cmd3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 saf_3cmd0 : 8; /* [7:0] */
        u32 saf_3cmd1 : 8; /* [15:8] */
        u32 saf_3cmd2 : 8; /* [23:16] */
        u32 saf_3cmd3 : 8; /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_pro_saf_cmd3_u;

/* Define the union csr_sc_pro_saf_cmd4_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 saf_4cmd0 : 8; /* [7:0] */
        u32 saf_4cmd1 : 8; /* [15:8] */
        u32 saf_4cmd2 : 8; /* [23:16] */
        u32 saf_4cmd3 : 8; /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_pro_saf_cmd4_u;

/* Define the union csr_sc_std_cmd_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 std_cmd0 : 8; /* [7:0] */
        u32 std_cmd1 : 8; /* [15:8] */
        u32 std_cmd2 : 8; /* [23:16] */
        u32 std_cmd3 : 8; /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_std_cmd_u;

/* Define the union csr_sc_dido_cmd_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 di_do_cmd0 : 8; /* [7:0] */
        u32 di_do_cmd1 : 8; /* [15:8] */
        u32 di_do_cmd2 : 8; /* [23:16] */
        u32 di_do_cmd3 : 8; /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_dido_cmd_u;

/* Define the union csr_sc_dio_cmd_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 dio_cmd0 : 8; /* [7:0] */
        u32 dio_cmd1 : 8; /* [15:8] */
        u32 dio_cmd2 : 8; /* [23:16] */
        u32 dio_cmd3 : 8; /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_dio_cmd_u;

/* Define the union csr_sc_qiqo_cmd_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 qi_qo_cmd0 : 8; /* [7:0] */
        u32 qi_qo_cmd1 : 8; /* [15:8] */
        u32 qi_qo_cmd2 : 8; /* [23:16] */
        u32 qi_qo_cmd3 : 8; /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_qiqo_cmd_u;

/* Define the union csr_sc_qio_cmd_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 qio_cmd0 : 8; /* [7:0] */
        u32 qio_cmd1 : 8; /* [15:8] */
        u32 qio_cmd2 : 8; /* [23:16] */
        u32 qio_cmd3 : 8; /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_qio_cmd_u;

/* Define the union csr_sc_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_en : 1;       /* [0] */
        u32 lock_sc_reg : 1; /* [1] */
        u32 rsv_28 : 30;     /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_ctrl_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_global_config_u global_config;               /* 100 */
    volatile csr_timing_u timing;                             /* 110 */
    volatile csr_int_raw_status_u int_raw_status;             /* 120 */
    volatile csr_int_status_u int_status;                     /* 124 */
    volatile csr_int_mask_u int_mask;                         /* 128 */
    volatile csr_int_clear_u int_clear;                       /* 12C */
    volatile csr_version_u version;                           /* 1F8 */
    volatile csr_sys_version_u sys_version;                   /* 1FC */
    volatile csr_sys_version_lock_u sys_version_lock;         /* FC */
    volatile csr_bus_config1_u bus_config1;                   /* 200 */
    volatile csr_bus_config2_u bus_config2;                   /* 204 */
    volatile csr_bus_flash_size_u bus_flash_size;             /* 210 */
    volatile csr_bus_base_addr_cs0_u bus_base_addr_cs0;       /* 214 */
    volatile csr_bus_base_addr_cs1_u bus_base_addr_cs1;       /* 218 */
    volatile csr_pp_timing_u pp_timing;                       /* 254 */
    volatile csr_cmd_config_u cmd_config;                     /* 300 */
    volatile csr_cmd_ins_u cmd_ins;                           /* 308 */
    volatile csr_cmd_addr_u cmd_addr;                         /* 30C */
    volatile csr_mem_ctrl_u mem_ctrl;                         /* 318 */
    volatile csr_mem_ecc_info1_u mem_ecc_info1;               /* 320 */
    volatile csr_arb_wip_timeout_u arb_wip_timeout;           /* 340 */
    volatile csr_arb_cfg_u arb_cfg;                           /* 344 */
    volatile csr_arb_lock_timeout_cnt_u arb_lock_timeout_cnt; /* 348 */
    volatile csr_cmd_databuf_u cmd_databuf[64];               /* 400 */
    volatile csr_sc_pro_saddrp_u sc_pro_saddrp[5];            /* 500 */
    volatile csr_sc_pro_eaddrp_u sc_pro_eaddrp[5];            /* 504 */
    volatile csr_sc_pro_saf_cmd0_u sc_pro_saf_cmd0;           /* 530 */
    volatile csr_sc_pro_saf_cmd1_u sc_pro_saf_cmd1;           /* 534 */
    volatile csr_sc_pro_saf_cmd2_u sc_pro_saf_cmd2;           /* 538 */
    volatile csr_sc_pro_saf_cmd3_u sc_pro_saf_cmd3;           /* 53C */
    volatile csr_sc_pro_saf_cmd4_u sc_pro_saf_cmd4;           /* 540 */
    volatile csr_sc_std_cmd_u sc_std_cmd;                     /* 544 */
    volatile csr_sc_dido_cmd_u sc_dido_cmd;                   /* 548 */
    volatile csr_sc_dio_cmd_u sc_dio_cmd;                     /* 54C */
    volatile csr_sc_qiqo_cmd_u sc_qiqo_cmd;                   /* 550 */
    volatile csr_sc_qio_cmd_u sc_qio_cmd;                     /* 554 */
    volatile csr_sc_ctrl_u sc_ctrl;                           /* 558 */
} S_sfc_REGS_TYPE;

/* Declare the struct pointor of the module sfc */
extern volatile S_sfc_REGS_TYPE *gopsfcAllReg;

/* Declare the functions that set the member value */
int iSetGLOBAL_CONFIG_mode(unsigned int umode);
int iSetGLOBAL_CONFIG_wp_en(unsigned int uwp_en);
int iSetGLOBAL_CONFIG_flash_cs0_addr_mode(unsigned int uflash_cs0_addr_mode);
int iSetGLOBAL_CONFIG_rd_delay(unsigned int urd_delay);
int iSetGLOBAL_CONFIG_flash_cs1_addr_mode(unsigned int uflash_cs1_addr_mode);
int iSetTIMING_tshsl(unsigned int utshsl);
int iSetTIMING_tcss(unsigned int utcss);
int iSetTIMING_tcsh(unsigned int utcsh);
int iSetINT_RAW_STATUS_cmd_op_end_raw_status(unsigned int ucmd_op_end_raw_status);
int iSetINT_RAW_STATUS_dma_done_int_raw_status(unsigned int udma_done_int_raw_status);
int iSetINT_RAW_STATUS_pp_fail_int_raw_status(unsigned int upp_fail_int_raw_status);
int iSetINT_RAW_STATUS_mem_ecc_fail_int_raw_status(unsigned int umem_ecc_fail_int_raw_status);
int iSetINT_RAW_STATUS_mem_ecc_val_int_raw_status(unsigned int umem_ecc_val_int_raw_status);
int iSetINT_RAW_STATUS_sc_trig_raw_status(unsigned int usc_trig_raw_status);
int iSetINT_RAW_STATUS_lock_timeout_raw_status(unsigned int ulock_timeout_raw_status);
int iSetINT_RAW_STATUS_wait_wip_before_op_timeout_raw_status(unsigned int uwait_wip_before_op_timeout_raw_status);
int iSetINT_RAW_STATUS_lock_ahb_conflict_raw_status(unsigned int ulock_ahb_conflict_raw_status);
int iSetINT_STATUS_cmd_op_end_status(unsigned int ucmd_op_end_status);
int iSetINT_STATUS_dma_done_int_status(unsigned int udma_done_int_status);
int iSetINT_STATUS_pp_fail_int_status(unsigned int upp_fail_int_status);
int iSetINT_STATUS_mem_ecc_fail_int_status(unsigned int umem_ecc_fail_int_status);
int iSetINT_STATUS_mem_ecc_val_int_status(unsigned int umem_ecc_val_int_status);
int iSetINT_STATUS_sc_trig_status(unsigned int usc_trig_status);
int iSetINT_STATUS_lock_timeout_status(unsigned int ulock_timeout_status);
int iSetINT_STATUS_wait_wip_before_op_timeout_status(unsigned int uwait_wip_before_op_timeout_status);
int iSetINT_STATUS_lock_ahb_conflict_status(unsigned int ulock_ahb_conflict_status);
int iSetINT_MASK_cmd_op_end_int_mask(unsigned int ucmd_op_end_int_mask);
int iSetINT_MASK_dma_done_int_mask(unsigned int udma_done_int_mask);
int iSetINT_MASK_pp_fail_int_mask(unsigned int upp_fail_int_mask);
int iSetINT_MASK_mem_ecc_fail_int_mask(unsigned int umem_ecc_fail_int_mask);
int iSetINT_MASK_mem_ecc_val_int_mask(unsigned int umem_ecc_val_int_mask);
int iSetINT_MASK_sc_trig_mask(unsigned int usc_trig_mask);
int iSetINT_MASK_lock_timeout_mask(unsigned int ulock_timeout_mask);
int iSetINT_MASK_wait_wip_before_op_timeout_mask(unsigned int uwait_wip_before_op_timeout_mask);
int iSetINT_MASK_lock_ahb_conflict_mask(unsigned int ulock_ahb_conflict_mask);
int iSetINT_CLEAR_cmd_op_end_int_clr(unsigned int ucmd_op_end_int_clr);
int iSetINT_CLEAR_pp_fail_int_clr(unsigned int upp_fail_int_clr);
int iSetINT_CLEAR_mem_ecc_fail_clr(unsigned int umem_ecc_fail_clr);
int iSetINT_CLEAR_mem_ecc_val_clr(unsigned int umem_ecc_val_clr);
int iSetINT_CLEAR_sc_trig_clr(unsigned int usc_trig_clr);
int iSetINT_CLEAR_lock_timeout_clr(unsigned int ulock_timeout_clr);
int iSetINT_CLEAR_wait_wip_before_op_timeout_clr(unsigned int uwait_wip_before_op_timeout_clr);
int iSetINT_CLEAR_lock_ahb_conflict_clr(unsigned int ulock_ahb_conflict_clr);
int iSetVERSION_version(unsigned int uversion);
int iSetSYS_VERSION_sys_version(unsigned int usys_version);
int iSetSYS_VERSION_LOCK_sys_version_lock(unsigned int usys_version_lock);
int iSetBUS_CONFIG1_bus_rd_mem_if_type(unsigned int ubus_rd_mem_if_type);
int iSetBUS_CONFIG1_bus_rd_dummy_bytes(unsigned int ubus_rd_dummy_bytes);
int iSetBUS_CONFIG1_bus_rd_prefetch_cnt(unsigned int ubus_rd_prefetch_cnt);
int iSetBUS_CONFIG1_bus_rd_ins(unsigned int ubus_rd_ins);
int iSetBUS_CONFIG1_bus_wr_mem_if_type(unsigned int ubus_wr_mem_if_type);
int iSetBUS_CONFIG1_bus_wr_dummy_bytes(unsigned int ubus_wr_dummy_bytes);
int iSetBUS_CONFIG1_bus_wr_ins(unsigned int ubus_wr_ins);
int iSetBUS_CONFIG1_bus_wr_enable(unsigned int ubus_wr_enable);
int iSetBUS_CONFIG1_bus_rd_enable(unsigned int ubus_rd_enable);
int iSetBUS_CONFIG2_bus_wip_locate(unsigned int ubus_wip_locate);
int iSetBUS_FLASH_SIZE_bus_flash_size_cs0(unsigned int ubus_flash_size_cs0);
int iSetBUS_FLASH_SIZE_bus_flash_size_cs1(unsigned int ubus_flash_size_cs1);
int iSetBUS_BASE_ADDR_CS0_bus_base_addr_high_cs0(unsigned int ubus_base_addr_high_cs0);
int iSetBUS_BASE_ADDR_CS1_bus_base_addr_high_cs1(unsigned int ubus_base_addr_high_cs1);
int iSetPP_TIMING_pp_busy_time(unsigned int upp_busy_time);
int iSetCMD_CONFIG_cmd_start(unsigned int ucmd_start);
int iSetCMD_CONFIG_cmd_sel_cs(unsigned int ucmd_sel_cs);
int iSetCMD_CONFIG_cmd_addr_en(unsigned int ucmd_addr_en);
int iSetCMD_CONFIG_cmd_dummy_byte_cnt(unsigned int ucmd_dummy_byte_cnt);
int iSetCMD_CONFIG_cmd_data_en(unsigned int ucmd_data_en);
int iSetCMD_CONFIG_cmd_rw(unsigned int ucmd_rw);
int iSetCMD_CONFIG_cmd_data_cnt(unsigned int ucmd_data_cnt);
int iSetCMD_CONFIG_cmd_mem_if_type(unsigned int ucmd_mem_if_type);
int iSetCMD_CONFIG_cmd_lock_flash(unsigned int ucmd_lock_flash);
int iSetCMD_INS_cmd_ins(unsigned int ucmd_ins);
int iSetCMD_ADDR_cmd_addr(unsigned int ucmd_addr);
int iSetMEM_CTRL_mem_ctrl(unsigned int umem_ctrl);
int iSetMEM_ECC_INFO1_ecc_inval_muti_err(unsigned int uecc_inval_muti_err);
int iSetMEM_ECC_INFO1_ecc_inval_err_syn(unsigned int uecc_inval_err_syn);
int iSetMEM_ECC_INFO1_err_inval_addr(unsigned int uerr_inval_addr);
int iSetMEM_ECC_INFO1_ecc_val_err(unsigned int uecc_val_err);
int iSetMEM_ECC_INFO1_ecc_val_err_syn(unsigned int uecc_val_err_syn);
int iSetMEM_ECC_INFO1_err_val_addr(unsigned int uerr_val_addr);
int iSetARB_WIP_TIMEOUT_arb_wip_timeout_cnt(unsigned int uarb_wip_timeout_cnt);
int iSetARB_CFG_lock_timeout(unsigned int ulock_timeout);
int iSetARB_CFG_lock_ahb_conflict(unsigned int ulock_ahb_conflict);
int iSetARB_LOCK_TIMEOUT_CNT_arb_lock_timeout_cnt(unsigned int uarb_lock_timeout_cnt);
int iSetCMD_DATABUF_cmd_databuf(unsigned int ucmd_databuf);
int iSetSC_PRO_SADDRP_saddr(unsigned int usaddr);
int iSetSC_PRO_EADDRP_eaddr(unsigned int ueaddr);
int iSetSC_PRO_SAF_CMD0_saf_cmd0(unsigned int usaf_cmd0);
int iSetSC_PRO_SAF_CMD0_saf_cmd1(unsigned int usaf_cmd1);
int iSetSC_PRO_SAF_CMD0_saf_cmd2(unsigned int usaf_cmd2);
int iSetSC_PRO_SAF_CMD0_saf_cmd3(unsigned int usaf_cmd3);
int iSetSC_PRO_SAF_CMD1_saf_1cmd0(unsigned int usaf_1cmd0);
int iSetSC_PRO_SAF_CMD1_saf_1cmd1(unsigned int usaf_1cmd1);
int iSetSC_PRO_SAF_CMD1_saf_1cmd2(unsigned int usaf_1cmd2);
int iSetSC_PRO_SAF_CMD1_saf_1cmd3(unsigned int usaf_1cmd3);
int iSetSC_PRO_SAF_CMD2_saf_2cmd0(unsigned int usaf_2cmd0);
int iSetSC_PRO_SAF_CMD2_saf_2cmd1(unsigned int usaf_2cmd1);
int iSetSC_PRO_SAF_CMD2_saf_2cmd2(unsigned int usaf_2cmd2);
int iSetSC_PRO_SAF_CMD2_saf_2cmd3(unsigned int usaf_2cmd3);
int iSetSC_PRO_SAF_CMD3_saf_3cmd0(unsigned int usaf_3cmd0);
int iSetSC_PRO_SAF_CMD3_saf_3cmd1(unsigned int usaf_3cmd1);
int iSetSC_PRO_SAF_CMD3_saf_3cmd2(unsigned int usaf_3cmd2);
int iSetSC_PRO_SAF_CMD3_saf_3cmd3(unsigned int usaf_3cmd3);
int iSetSC_PRO_SAF_CMD4_saf_4cmd0(unsigned int usaf_4cmd0);
int iSetSC_PRO_SAF_CMD4_saf_4cmd1(unsigned int usaf_4cmd1);
int iSetSC_PRO_SAF_CMD4_saf_4cmd2(unsigned int usaf_4cmd2);
int iSetSC_PRO_SAF_CMD4_saf_4cmd3(unsigned int usaf_4cmd3);
int iSetSC_STD_CMD_std_cmd0(unsigned int ustd_cmd0);
int iSetSC_STD_CMD_std_cmd1(unsigned int ustd_cmd1);
int iSetSC_STD_CMD_std_cmd2(unsigned int ustd_cmd2);
int iSetSC_STD_CMD_std_cmd3(unsigned int ustd_cmd3);
int iSetSC_DIDO_CMD_di_do_cmd0(unsigned int udi_do_cmd0);
int iSetSC_DIDO_CMD_di_do_cmd1(unsigned int udi_do_cmd1);
int iSetSC_DIDO_CMD_di_do_cmd2(unsigned int udi_do_cmd2);
int iSetSC_DIDO_CMD_di_do_cmd3(unsigned int udi_do_cmd3);
int iSetSC_DIO_CMD_dio_cmd0(unsigned int udio_cmd0);
int iSetSC_DIO_CMD_dio_cmd1(unsigned int udio_cmd1);
int iSetSC_DIO_CMD_dio_cmd2(unsigned int udio_cmd2);
int iSetSC_DIO_CMD_dio_cmd3(unsigned int udio_cmd3);
int iSetSC_QIQO_CMD_qi_qo_cmd0(unsigned int uqi_qo_cmd0);
int iSetSC_QIQO_CMD_qi_qo_cmd1(unsigned int uqi_qo_cmd1);
int iSetSC_QIQO_CMD_qi_qo_cmd2(unsigned int uqi_qo_cmd2);
int iSetSC_QIQO_CMD_qi_qo_cmd3(unsigned int uqi_qo_cmd3);
int iSetSC_QIO_CMD_qio_cmd0(unsigned int uqio_cmd0);
int iSetSC_QIO_CMD_qio_cmd1(unsigned int uqio_cmd1);
int iSetSC_QIO_CMD_qio_cmd2(unsigned int uqio_cmd2);
int iSetSC_QIO_CMD_qio_cmd3(unsigned int uqio_cmd3);
int iSetSC_CTRL_sc_en(unsigned int usc_en);
int iSetSC_CTRL_lock_sc_reg(unsigned int ulock_sc_reg);


#endif // SFC_C_UNION_DEFINE_H
